package com.example.lowbird.lowbird.java;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/11/3.
 */
@Table(name = "shopcar", id = "_id")
public class SHopcar extends Model implements Serializable {
    @Column(name = "id")
    public int id2;
    @Column(name = "imageurl")
    public String imageurl;
    @Column(name = "name")
    public String name;//商品描述
    @Column(name = "count")//购买的个数
    public int count;
    @Column(name = "price")
    public double price;//价格
    @Column(name = "maxsize")
    public int maxsize;//库存量

    @Column(name = "shopurl")//购买商店的网址
    public String shopurl;

    @Column(name = "selected")
    public int selected;

    public SHopcar() {
    }

    public int getId2() {
        return id2;
    }

    public void setId2(int id2) {
        this.id2 = id2;
    }

    public String getShopurl() {
        return shopurl;
    }

    public void setShopurl(String shopurl) {
        this.shopurl = shopurl;
    }

    public int getSelected() {
        return selected;
    }

    public void setSelected(int selected) {
        this.selected = selected;
    }


    public SHopcar(int id2, String imageurl, String name, int count, double price, int maxsize, String shopurl, int selected) {
        this.id2 = id2;
        this.imageurl = imageurl;
        this.name = name;
        this.count = count;
        this.price = price;
        this.maxsize = maxsize;
        this.shopurl = shopurl;
        this.selected = selected;
    }

    public int getMaxsize() {
        return maxsize;
    }

    public void setMaxsize(int maxsize) {
        this.maxsize = maxsize;
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "SHopcar{" +
                "imageurl='" + imageurl + '\'' +
                ", name='" + name + '\'' +
                ", count=" + count +
                ", price=" + price +
                '}';
    }
}
